package com.deyuanyun.pic.pipe.support.validatefun;

import java.util.regex.Pattern;

import com.caixu.beanvalidateutil.vinterface.ValidateInterface;

public class GatherNoRang implements ValidateInterface{

	@Override
	public <T, E, C> boolean apply(T arg0, E arg1, C arg2) {
		String val=(String) arg0;
		int length=val.length();
		if(val.length()>4){
			String sort=val.substring(length-4, length);
			if(Pattern.matches("\\d{4}", sort)){
				return true;
			}
		}
		
		return false;
	}

	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return null;
	}

}
